import axios from 'axios'
axios.defaults.withCredentials = true

let base_url = 'http://www.wetcland.cn/api/'//'http://mc.wetcland.cn:8080/wetcland_web/'

let post = function (url, data, config) {
    return axios.post(base_url + url, data, config)
}

let get = function (url, config) {
    return axios.get(base_url + url, config)
}

export default {
    post,
    get,
    axios,
    base_url
}
